package com.example.patternfactory0307.factoryPattern.factoryMethod;

/**
 * Created by huanglijun on 2019/3/7
 */
public class DemoTest {
    public static void main(String[] args) {
        new MideaWaterHeaterFactory().createWaterHeater().heatUpWater();


        new GREEWaterHeaterFactory().createWaterHeater().heatUpWater();
    }
}
